package com.guoqing.example.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.util.Set;

/**
 * @ClassName User
 * @Description TODO
 * @Author ZhangGuoQing
 * @Date 2020/8/16/0016 22:17
 */
@Data
//@TableName("tb_user")
public class MyUser {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String gender;
    private String pwd;
    @TableField(exist = false)
    private Set<Role> roles;
}
